<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ include file="/common/include/page.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title> 
    <meta charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="${rootPath}/Styles/admin-all.css" />
    <link rel="stylesheet" type="text/css" href="${rootPath}/Styles/base.css"/>
    <script type="text/javascript" src="${rootPath}/Scripts/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="${rootPath}/Scripts/jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${rootPath}/Styles/ui-lightness/jquery-ui-1.8.22.custom.css" />
    <link rel="stylesheet" type="text/css" href="${rootPath}/Styles/formui.css"/>
    <script type="text/javascript" src="${rootPath}/Scripts/tb.js"></script>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="${rootPath}/Styles/bt.css"/>
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
	
    <div class="alert alert-info">当前位置<b class="tip"></b>汽车信息查询</div>
    <div class="search">
    <div class="sel">
   <form class="form-inline" method="post" action="${rootPath}/carmanage/searcherCarInfoSubmit.html">
    <div class="">

      <div class="form-group">
    <label for="number">车号</label>
    <input type="text" name="keyword" id="keyword" value="" class="form-control" placeholder="车号"/>
     </div>
     <div class="form-group">
    <label for="price">价格</label>
    <input type="text" name="pr" id="pr" value="" class="form-control" placeholder="价格"/>
     </div>
      <div class="form-group">
    <label for="color">颜色</label>
    <input type="text" name="co" id="co" value="" class="form-control" placeholder="颜色"/>
     </div>
      <div class="form-group">
     <label for="status">租用情况</label>
     <select class="form-control" name="stats" id="stats">
     		<option value="">请选择</option>
		    <option value="0" ${requestScope.stats == '0' ? 'selected' : ''}>未出租</option>
		    <option value="1" ${requestScope.stats == '1' ? 'selected' : ''}>已出租</option>
		    <option value="2" ${requestScope.stats == '2' ? 'selected' : ''}>已归还</option>
     </select>
    <input type="text" name="user" id="" value="" class="form-control" placeholder="查询"/>
     </div>     
    	
   <button type="submit" class="btn btn-success">查询</button>
    </div>
    </form>
    <div class="table">
     <table class="table">
   		<thead>
		<tr>
			<th>序号</th>
			<th>车号</th>
			<th>颜色</th>
			<th>价格</th>
			<th>租金</th>
			<th>押金</th>
			<th>租用情况</th>
			<th>编辑</th>
			<th>删除</th>
		</tr>
	</thead>
	<tbody>
	<c:forEach items="${requestScope.acarsList}" var="acars" varStatus="stat">
		<tr class="active">
			<th>${stat.count }</th>
			<td>${acars.number}</td>
			<td>${acars.color}</td>
			<td>${acars.price}</td>
			<td>${acars.rentprice}</td>
			<td>${acars.deposit}</td>
			<td>${acars.status}</td>
			<td><a href="${rootPath}/carmanage/addCarInfo.html" style="color: blue;">【编辑】</a></td>
			<td><a href="" style="color: blue;">【删除】</a></td>
		</tr>
	</c:forEach>
	</tbody>
	
</table>

	    <nav>
			
						<form id="usersListPageForm"
							action="${rootPath }/carmanage/searcherCarInfoSubmit.html" method="post">
							<%--带上搜索条件 --%>
							<input type="hidden" name="keyword" value="${requestScope.keyword }">
							<input type="hidden" name="stats" value="${requestScope.stats }">
							<input type="hidden" name="co" value="${requestScope.co }">
							<input type="hidden" name="pr" value="${requestScope.pr }">
							<%--
								分页
							 --%>
							 <nav>
								<ul class="pager">
									<li><a href="${rootPath }/carmanage/searcherCarInfoSubmit.html?currentPage=1&pageSize=${requestScope.pageInfoUtil.pageSize }"><span>首页</span></a></li>
									<li><a href="${rootPath }/carmanage/searcherCarInfoSubmit.html?currentPage=${requestScope.pageInfoUtil.prePage }&pageSize=${requestScope.pageInfoUtil.pageSize }"><span>上一页</span></a></li>
									<li><a href="${rootPath }/carmanage/searcherCarInfoSubmit.html?currentPage=${requestScope.pageInfoUtil.nextPage }&pageSize=${requestScope.pageInfoUtil.pageSize }"><span>下一页</span></a></li>
									<li><a href="${rootPath }/carmanage/searcherCarInfoSubmit.html?currentPage=${requestScope.pageInfoUtil.totalPage }&pageSize=${requestScope.pageInfoUtil.pageSize }"><span>尾页</span></a></li>
									<li>${requestScope.pageInfoUtil.totalPage }页,共${requestScope.pageInfoUtil.totalRecord }条</li>
									<li>第<input type="text" id="currentPage" name="currentPage"
										value="${requestScope.pageInfoUtil.currentPage }" size="5" maxlength="5" />页
									</li>
									<li><input type="text" id="pageSize" name="pageSize"
										value="${requestScope.pageInfoUtil.pageSize }" size="5" maxlength="5" /></li>
									<li><input type="submit" value="GO" class="btn btn-primary" /></li>
								</ul>
							</nav>
						</form>
		</nav>
  </div> 	
   
    </div>
    </div>
    <!-- 提示信息 -->
		<div class="container">
			<div class="col-sm-8 col-sm-offset-1"></div>
		</div>
</body>
</html>
